package cn.lixin.hrm.errorcode;

//统一错误码
public enum ErrorCode {
    COMPANY_NAME_NOT_BE_NULL(101,"公司名称不能为空！"),
    USER_NAME_NOT_BE_NULL(102,"用户名称不能为空！"),
    PHONE_NOT_BE_NULL(103,"手机号不能为空！"),
    COMPANY_NUM_ILLEGAL(104,"信用码不合法！"),
    PHONE_ILLEGAL(105,"手机号不合法！"),
    EMAIL_ILLEGAL(106,"邮箱不规范！"),
    PHONE_REGISTER(107,"手机已被注册！");

    private final int code;
    private final String message;

    ErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return "【"+code+"】" + message ;
    }
}
